﻿<%@ Page Language="C#" MasterPageFile="~/admin/MasterPageAdmin.master"  AutoEventWireup="true" CodeFile="EditUser.aspx.cs" Inherits="admin_EditUser" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <form id="EditUser" runat="server">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding-top:20px;">            
    <tr>	
     <td align="left"  valign="top">          
             <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">  
                <tr style="height:34px; background-color:#D4D4D4;font-weight:bold;color:#888888;margin-left:10px">                
                    <td colspan="2" align="center" style="text-align:center">        
                      Thông tin thành viên.
                    </td>                
                </tr>                
                <tr style="height:30px; padding-top:10px;">
                    <td class="rowContent"  align="right" style="width: 139px; height: 30px">Tên đăng nhập:</td>
                    <td style="width: 80%; height: 30px;">
                        <input id="txtUser_Name" runat="server" class="input" type="text" style="width: 31%; color:Black;" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtUser_Name"
                            ErrorMessage="*" ToolTip="Bạn chưa nhập tên đăng nhập">
                        </asp:RequiredFieldValidator>
                    </td>
                </tr>
                
                <tr style="height:30px;">
                    <td class="rowContent" align="right" style="width: 139px">Email:</td>
                    <td style="width: 80%">
                    <input id="txtEmail" runat="server" class="input" type="text" style="width: 31%; color:Black;" /></td>
                </tr>    
                 <tr style="height: 30px">
                     <td align="right" class="rowContent" style="width: 139px; height: 30px">
                         Địa chỉ:
                     </td>
                     <td style="width: 80%; height: 30px">
                         <input id="txtAddress" runat="server" class="input" type="text" style="width: 59%; color:Black;" /></td>
                 </tr>               
                 <tr style="height: 30px">
                     <td align="right" class="rowContent" style="width: 139px; height: 30px">
                         Giới tính:</td>
                     <td style="width: 80%; height: 30px">
                         <asp:RadioButton ID="rdiNam" runat="server" Text="Nam" GroupName="rdi"/>
                         <asp:RadioButton ID="rdiNu" runat="server" Text="Nữ" GroupName="rdi"/></td>
                 </tr>
                 <tr style="height: 30px">
                     <td align="right" class="rowContent" style="width: 139px; height: 30px">
                         Điện thoại:</td>
                     <td style="width: 80%; height: 30px">
                         <input id="txtPhone" runat="server" class="input" type="text" style="width: 31%; color:Black;" /></td>
                 </tr>
                 <tr style="height: 30px">
                     <td align="right" class="rowContent" style="width: 139px; height: 30px">
                         Nơi làm việc:
                     </td>
                     <td style="width: 80%; height: 30px">
                         <input id="txtCompany" runat="server" class="input" type="text" style="width: 59%; color:Black;" /></td>
                 </tr>
                 <tr style="height: 30px">
                     <td align="right" class="rowContent" style="width: 139px; height: 30px">
                         Thuộc nhóm:
                     </td>
                     <td style="width: 80%; height: 30px">
                         <asp:DropDownList ID="ddlGroup" runat="server" Width="174px">
                             <asp:ListItem Value="0">Th&#224;nh vi&#234;n</asp:ListItem>
                             <asp:ListItem Value="1">Quản trị</asp:ListItem>
                             <asp:ListItem Value="2">Admin</asp:ListItem>
                         </asp:DropDownList></td>
                 </tr>
                 <tr style="height: 30px">
                     <td align="right" class="rowContent" style="width: 139px">
                         Nick Yahoo:</td>
                     <td style="width: 80%">
                         <input id="txtNick" runat="server" class="input" type="text" style="width: 31%; color:Black;" /></td>
                 </tr>
                  
                 <tr style="height: 30px">
                     <td align="right" class="rowContent" style="width: 139px">
                     </td>
                     <td style="width: 80%">
                         &nbsp;</td>
                 </tr>
                 <tr style="height: 30px">
                     <td align="right" class="rowContent" style="width: 139px">
                         <asp:Label ID="lblMK" runat="server" Text="Label"></asp:Label></td>
                     <td style="width: 80%">
                         <asp:TextBox ID="txtMK" runat="server" TextMode="Password"></asp:TextBox></td>
                 </tr>
               
                 <tr style="height:30px;">
                    <td colspan="3">&nbsp;</td>                    
                </tr>
                 <tr style="height:30px;">
                    <td class="rowContent"  align="Left" style="width: 139px"></td>
                    <td style="width: 80%; height: 30px;" align="center">
                        <input type="button" value="Quay lại" id="btnBack"  runat="server" onserverclick="btnBack_ServerClick"  />						
                        <asp:Button ID="btnAdd" runat="server" Text="Thêm" OnClick="btnAdd_Click" />
						<input type="submit" value="Sửa" runat="server" id="btnEdit" onserverclick="btnEdit_Click" style="width: 73px"  onclick="return btnEdit_onclick()" />
						<input type="reset" value="Hủy"   style="width: 73px" onclick="javascript :ClearForm();" />
                    </td>
                </tr>
                 <tr style="height: 30px">                 
                     <td align="center" class="rowContent" colspan="2">                      
                       <div style="text-align:center">
                           <asp:Panel ID="Panel1" runat="server" style="display:none">
                             <div >
                                <div style="z-index: 101; width: 433px; position: absolute; top: -110px;
                                        height: 188px; left: -226px;">
                                        <asp:Label ID="Label1" runat="server" Font-Size="24pt" CssClass="changePass" Text="THAY ĐỔI MẬT KHẨU" ForeColor="White"></asp:Label><br />
                                        <br />
                                        <asp:Label ID="Label2" CssClass="changePass" runat="server" Text="Nhập mật khẩu mới" ForeColor="White"></asp:Label>&nbsp;&nbsp;<asp:TextBox ID="txtPass" runat="server" TextMode="Password" ></asp:TextBox>
                                    <br />
                                        <br />
                                        <asp:Label ID="Label3"  CssClass="changePass" runat="server" Text="Nhập lại mật khẩu" Width="120px" ForeColor="White" ></asp:Label>
                                        &nbsp; &nbsp;<asp:TextBox ID="txtPass2" runat="server" TextMode="Password"></asp:TextBox>
                                    <br />
                                        <br />
                                        <asp:Button ID="btnAcceptChange" runat="server" Text="Thay đổi" OnClick="btnAcceptChange_Click" />
                                        <asp:Button ID="btnNoChange" runat="server" Text="Hủy bỏ" />
                                    </div>
                            </div>
                           </asp:Panel>
                       </div>
                     </td>
                 </tr>                   
            </table>
      </td>
    </tr>
    
</table>  
</form>

<script language="javascript" type="text/javascript">
    function ClearForm()
    {
        document.getElementById('<%=txtUser_Name.ClientID%>').value = "";        
    }
    function CheckValidate()
    {        
        return true;      
    }
   

</script>

</asp:Content>